package cn.tedu.luban.city.builder;

import cn.tedu.luban.city.vo.CityVO;
import cn.tedu.luban.city.vo.CodeVO;
import com.alibaba.fastjson2.JSON;
import java.util.List;

public class CitiesBuilder {
    public static List<CityVO> buildCityTree() {
        String cities="[\n" +
            "    {\n" +
            "      \"id\": 1,\n" +
            "      \"parentId\": 0,\n" +
            "      \"code\": \"110000\",\n" +
            "      \"cityCode\": \"010\",\n" +
            "      \"name\": \"北京市\",\n" +
            "      \"depth\": 1,\n" +
            "      \"isDelete\": 0,\n" +
            "      \"isMunicipality\": 1,\n" +
            "      \"createUserId\": null,\n" +
            "      \"gmtCreate\": null,\n" +
            "      \"modifiedUserId\": null,\n" +
            "      \"gmtModified\": null,\n" +
            "      \"createUserName\": null,\n" +
            "      \"modifiedUserName\": null,\n" +
            "      \"children\": [\n" +
            "        {\n" +
            "          \"id\": 2,\n" +
            "          \"parentId\": 1,\n" +
            "          \"code\": \"110100\",\n" +
            "          \"cityCode\": \"010\",\n" +
            "          \"name\": \"北京市市辖区\",\n" +
            "          \"depth\": 2,\n" +
            "          \"isDelete\": 0,\n" +
            "          \"isMunicipality\": 0,\n" +
            "          \"createUserId\": null,\n" +
            "          \"gmtCreate\": null,\n" +
            "          \"modifiedUserId\": null,\n" +
            "          \"gmtModified\": null,\n" +
            "          \"createUserName\": null,\n" +
            "          \"modifiedUserName\": null,\n" +
            "          \"children\": [\n" +
            "            {\n" +
            "              \"id\": 3,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110101\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"东城区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            },\n" +
            "            {\n" +
            "              \"id\": 4,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110102\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"西城区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            },\n" +
            "            {\n" +
            "              \"id\": 5,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110105\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"朝阳区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            },\n" +
            "            {\n" +
            "              \"id\": 6,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110106\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"丰台区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            },\n" +
            "            {\n" +
            "              \"id\": 7,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110107\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"石景山区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            },\n" +
            "            {\n" +
            "              \"id\": 8,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110108\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"海淀区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            },\n" +
            "            {\n" +
            "              \"id\": 9,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110109\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"门头沟区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            },\n" +
            "            {\n" +
            "              \"id\": 10,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110111\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"房山区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            },\n" +
            "            {\n" +
            "              \"id\": 11,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110112\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"通州区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            },\n" +
            "            {\n" +
            "              \"id\": 12,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110113\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"顺义区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            },\n" +
            "            {\n" +
            "              \"id\": 13,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110114\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"昌平区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            },\n" +
            "            {\n" +
            "              \"id\": 14,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110115\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"大兴区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            },\n" +
            "            {\n" +
            "              \"id\": 15,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110116\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"怀柔区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            },\n" +
            "            {\n" +
            "              \"id\": 16,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110117\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"平谷区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            },\n" +
            "            {\n" +
            "              \"id\": 17,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110118\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"密云区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            },\n" +
            "            {\n" +
            "              \"id\": 18,\n" +
            "              \"parentId\": 2,\n" +
            "              \"code\": \"110119\",\n" +
            "              \"cityCode\": \"010\",\n" +
            "              \"name\": \"延庆区\",\n" +
            "              \"depth\": 3,\n" +
            "              \"isDelete\": 0,\n" +
            "              \"isMunicipality\": 0,\n" +
            "              \"createUserId\": null,\n" +
            "              \"gmtCreate\": null,\n" +
            "              \"modifiedUserId\": null,\n" +
            "              \"gmtModified\": null,\n" +
            "              \"createUserName\": null,\n" +
            "              \"modifiedUserName\": null,\n" +
            "              \"children\": null\n" +
            "            }\n" +
            "          ]\n" +
            "        }\n" +
            "      ]\n" +
            "    }\n" +
            "  ]";
        return JSON.parseArray(cities,CityVO.class);
    }
    public static List<CodeVO> getCodes() {
        String codes="[\n" +
            "  {\n" +
            "    \"id\": 1,\n" +
            "    \"parentId\": 0,\n" +
            "    \"appId\": 2,\n" +
            "    \"name\": \"服务品类\",\n" +
            "    \"code\": \"name\",\n" +
            "    \"value\": \"服务品类\",\n" +
            "    \"remark\": \"服务品类\",\n" +
            "    \"sort\": 0,\n" +
            "    \"status\": null,\n" +
            "    \"children\": [\n" +
            "      {\n" +
            "        \"id\": 2,\n" +
            "        \"parentId\": 1,\n" +
            "        \"appId\": 2,\n" +
            "        \"name\": \"家电安装\",\n" +
            "        \"code\": \"name\",\n" +
            "        \"value\": \"家电安装\",\n" +
            "        \"remark\": \"家电安装\",\n" +
            "        \"sort\": 0,\n" +
            "        \"status\": null,\n" +
            "        \"children\": [\n" +
            "          {\n" +
            "            \"id\": 3,\n" +
            "            \"parentId\": 2,\n" +
            "            \"appId\": 2,\n" +
            "            \"name\": \"家电安装\",\n" +
            "            \"code\": \"name\",\n" +
            "            \"value\": \"冰箱安装\",\n" +
            "            \"remark\": \"冰箱安装\",\n" +
            "            \"sort\": 0,\n" +
            "            \"status\": null,\n" +
            "            \"children\": null\n" +
            "          },\n" +
            "          {\n" +
            "            \"id\": 4,\n" +
            "            \"parentId\": 2,\n" +
            "            \"appId\": 2,\n" +
            "            \"name\": \"家电安装\",\n" +
            "            \"code\": \"name\",\n" +
            "            \"value\": \"橱柜安装\",\n" +
            "            \"remark\": \"橱柜安装\",\n" +
            "            \"sort\": 0,\n" +
            "            \"status\": null,\n" +
            "            \"children\": null\n" +
            "          }\n" +
            "        ]\n" +
            "      },\n" +
            "      {\n" +
            "        \"id\": 5,\n" +
            "        \"parentId\": 1,\n" +
            "        \"appId\": 2,\n" +
            "        \"name\": \"家政清洁\",\n" +
            "        \"code\": \"name\",\n" +
            "        \"value\": \"家政清洁\",\n" +
            "        \"remark\": \"家政清洁\",\n" +
            "        \"sort\": 0,\n" +
            "        \"status\": null,\n" +
            "        \"children\": [\n" +
            "          {\n" +
            "            \"id\": 6,\n" +
            "            \"parentId\": 5,\n" +
            "            \"appId\": 2,\n" +
            "            \"name\": \"家政清洁\",\n" +
            "            \"code\": \"name\",\n" +
            "            \"value\": \"清洗空调\",\n" +
            "            \"remark\": \"清洗空调\",\n" +
            "            \"sort\": 0,\n" +
            "            \"status\": null,\n" +
            "            \"children\": null\n" +
            "          },\n" +
            "          {\n" +
            "            \"id\": 7,\n" +
            "            \"parentId\": 5,\n" +
            "            \"appId\": 2,\n" +
            "            \"name\": \"家政清洁\",\n" +
            "            \"code\": \"name\",\n" +
            "            \"value\": \"清洗抽油烟机\",\n" +
            "            \"remark\": \"清洗抽油烟机\",\n" +
            "            \"sort\": 0,\n" +
            "            \"status\": null,\n" +
            "            \"children\": null\n" +
            "          }\n" +
            "        ]\n" +
            "      }\n" +
            "    ]\n" +
            "  }\n" +
            "]";
        return JSON.parseArray(codes, CodeVO.class);
    }
}
